﻿@using KRM.Core
@model KRM.Core.tblKRMRefundQuestion 
@{
    var answer = ViewBag.Answer as tblKRMRefundAnswer;
    var answers = answer.RefundAnswers.Split('|');
}

<input type="hidden" name="RefundQuestionID" value="@Model.RefundQuestionID"/>
<fieldset>
    <legend class="bold">@Model.RefundQuestionText</legend>
    <div class="border-padding10">
        @foreach (var item in Model.RefundQuestionData.Split('|').Where(a => !string.IsNullOrEmpty(a)))
        {
            <label>
                <input type="checkbox" class="cbcheck" name="refundAnswer" value="@(Model.RefundQuestionID+"_"+item)"
                         @(answers.Contains(item) ? "checked=checked" : "") /> @item
            </label>
        }
    </div>
</fieldset>